/**
 * Setvor project
 */
package setvor.web;

import java.util.*;

/**
 * @author julatec
 *
 */
public class Directory {

	protected List<Page> pages;
	
	protected List<Directory> directories;
	
	protected String name;
	
	protected Page defaultPage;
	

	/**
	 * 
	 * @param name
	 */
	public Directory(String name) {
		this.name = name;
		this.pages = new Vector<Page>();
		this.directories = new Vector<Directory>(); 
	}
	
	/**
	 * 
	 * @param name
	 * @param defaultPage
	 */
	public Directory(String name, Page defaultPage) {
		this(name);
		this.defaultPage = defaultPage;
	}

	/**
	 * @return the name
	 */
	protected String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	protected void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the defaultPage
	 */
	protected Page getDefaultPage() {
		return defaultPage;
	}

	/**
	 * @param defaultPage the defaultPage to set
	 */
	protected void setDefaultPage(Page defaultPage) {
		this.defaultPage = defaultPage;
	}

	/**
	 * @return the pages
	 */
	protected List<Page> getPages() {
		return pages;
	}

	/**
	 * @return the directories
	 */
	protected List<Directory> getDirectories() {
		return directories;
	}

}

